/**
 * 
 * 返回所有红球结果
 */
function getAllRedBallList ():{
    allRedBollStr: string[]//字符串形式的红球结果
    allRedBallList: string[][]//数组形式的红球结果
} {
    let redBall = ["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33"];
    let result:any = [];
    let allRedBollStr:any[] = [];
    for (var i = 0, len1 = redBall.length; i < len1; i++) {
        var array2 = redBall.concat();
        array2.splice(0, i + 1);
        for (var j = 0, len2 = array2.length; j < len2; j++) {
            var array3 = array2.concat();
            array3.splice(0, j + 1);
            for (var k = 0,len3 = array3.length; k < len3; k++) {
                var array4 = array3.concat();
                array4.splice(0, k + 1);
                for (var a = 0,len4 = array4.length; a < len4; a++) {
                var array5 = array4.concat();
                array5.splice(0, a + 1);
                for (var b = 0,len5 = array5.length; b < len5; b++) {
                    var array6 = array5.concat();
                    array6.splice(0, b + 1);
                    for (var c = 0,len6 = array6.length; c < len6; c++) {
                        let newResult = [redBall[i], array2[j], array3[k], array4[a], array5[b], array6[c]];
                        allRedBollStr.push(newResult.join(""));//红球结果，字符串形式
                        result.push(newResult);//红球结果，数组形式
                    }
                }
                }
            }
        }
    }
    
    return {
        allRedBollStr: allRedBollStr,
        allRedBallList: result
    }
}

export{
    getAllRedBallList
}